<?php
require_once('../includes/config.php');
require_once('../core/database.php');
require_once('../core/functions.php');
require_once('../core/main.php');

switch($function) {
  case "listSubscribe" :
    $main = new main();
    $main->listSubscribe($_POST);
    break;

  case "listUnubscribe" :
    $main = new main();
    $main->listUnubscribe($_POST);
    break;

  case "listDelete" :
    $main = new main();
    $main->listDelete($_GET);
    break;

  case "update-config" :
    $admin = new admin();
    $main->UpdateConfig($_POST);
    break;

  case "multiple-delete" :
    $main = new main();
    $main->multipleDelete($_POST);
    break;

  case "send-email" :
    $main = new main();
    $main->sendNewsletter($_POST);
    break;

  case "send-email-event" :
    $main = new main();
    $main->sendNewsletterEvent($_POST);
    break;
}

?>
